package com.ItemsRent.action;

import java.util.List;

import com.ItemsRent.IService.service.UserImpl;
import com.ItemsRent.model.User;

public class UserAction {

	private User user;
	private UserImpl userService ;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public UserImpl getUserService() {
		return userService;
	}
	public void setUserService(UserImpl userService) {
		this.userService = userService;
	}
	
	public String showall(){
		List<User> list = userService.findAll();
		System.out.println("All User: "+list);
		return "show";
	}
	
	public static void main(String args[]){
		UserAction userAction = new UserAction();
		userAction.userService = new UserImpl();
		userAction.showall();
	}
}
